package javaRevise.interfaceDoor;

/**
 * @author WuYongheng
 * @date 2021/12/3
 * @description 抽象类门
 */
public abstract class Door {
    private String name;
    private String type;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    /**
     * 开门
     */
    public abstract void open();

    /**
     * 关门
     */
    public abstract void close();
}
